package com.stox.repository;

import java.util.Date;
import java.util.List;

import com.stox.model.Bar;

public interface BarRepository {

	public List<Bar> findByScripCode(String scripCode);
	
	public List<Bar> findByScripCode(String scripCode, final Date start);
	
	public List<Bar> findByScripCode(String scripCode,final int count);
	
	public List<Bar> findByScripCode(String scripCode, Date start, Date end);
	
	public Bar save(Bar bar);
	
	public void createPartition(String scripCode);
	
	public void flush();
	
}
